package com.itcast.dao;

import com.itcast.pojo.Member;
import com.itcast.pojo.Order;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface MemberDao {
    @Select("select * from t_member where phoneNumber = #{telephone}")
    Member findMemberByPhoneNumber(@Param("telephone") String telephone);

    void addMember(Member member);
    @Select("select * from t_member where id = #{id}")
    Member findById(@Param("id") Integer id);

    Integer findMemberCountBymonth(String month);
}
